/*
 * @Author: elfsigin 2714838232@qq.com
 * @Date: 2024-11-16 08:29:03
 * @LastEditors: elfsigin 2714838232@qq.com
 * @LastEditTime: 2024-11-16 20:50:33
 * @FilePath: \VUE3-ELEMENT-PLUS\manager-pei\src\router\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import {createRouter,createWebHashHistory} from 'vue-router'
import Home from '../components/Home.vue'
import Welcome from '../views/Welcome.vue'


const routes = [
    {
      name: 'home',
      path: '/',
      meta: {
        title: '首页'
      },
      component: Home,
      redirect: '/welcome',
      children: [
        {
          name: 'welcome',
          path: '/welcome',
          meta: {
            title: '欢迎页'
          },
          component: Welcome
        },
      
  
      ]
    },
    {
      name: 'login',
      path: '/login',
      meta: {
        title: '登录页'
      },
      component: ()=>import('../views/Login.vue')
    }
   
  ]

const router=createRouter({
    history:createWebHashHistory(),
    routes
})
export default router